package Model;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

public abstract class SanPham {
	protected String tenSP;
	protected int giaBan;
	protected HangSanXuat hangSanXuat;
	protected int soLuong;
	protected String hinhAnh;
	protected String anhDaiDien;
	protected Date ngayThang;
	protected int giaSauKhiGiam;
	protected String thongTinNoiBat;
	protected String thoiGianBaoHanh;
	protected String trongLuong;
	protected String kichThuoc;
	protected String mauSac;
	
	public SanPham(){
		super();
	}
	public SanPham(String tenSP, int giaBan, HangSanXuat hangSanXuat,
			int soLuong, String hinhAnh, String anhDaiDien, Date ngayThang,
			int giaSauKhiGiam, String thongTinNoiBat,
			String thoiGianBaoHanh, String trongLuong, String kichThuoc,
			String mauSac) {
		super();
		this.tenSP = tenSP;
		this.giaBan = giaBan;
		this.hangSanXuat = hangSanXuat;
		this.soLuong = soLuong;
		this.hinhAnh = hinhAnh;
		this.anhDaiDien = anhDaiDien;
		this.ngayThang = ngayThang;
		this.giaSauKhiGiam = giaSauKhiGiam;
		this.thongTinNoiBat = thongTinNoiBat;
		this.thoiGianBaoHanh = thoiGianBaoHanh;
		this.trongLuong = trongLuong;
		this.kichThuoc = kichThuoc;
		this.mauSac = mauSac;
	}
	
	
	public SanPham(String tenSP, int giaBan, String anhDaiDien,
			int giaSauKhiGiam) {
		super();
		this.tenSP = tenSP;
		this.giaBan = giaBan;
		this.anhDaiDien = anhDaiDien;
		this.giaSauKhiGiam = giaSauKhiGiam;
	}
	public String getTenSP() {
		return tenSP;
	}
	public void setTenSP(String tenSP) {
		this.tenSP = tenSP;
	}
	public int getGiaBan() {
		return giaBan;
	}
	public void setGiaBan(int giaBan) {
		this.giaBan = giaBan;
	}
	public HangSanXuat getHangSanXuat() {
		return hangSanXuat;
	}
	public void setHangSanXuat(HangSanXuat hangSanXuat) {
		this.hangSanXuat = hangSanXuat;
	}
	public int getSoLuong() {
		return soLuong;
	}
	public void setSoLuong(int soLuong) {
		this.soLuong = soLuong;
	}
	public String getHinhAnh() {
		return hinhAnh;
	}
	public void setHinhAnh(String hinhAnh) {
		this.hinhAnh = hinhAnh;
	}
	public String getanhDaiDien() {
		return anhDaiDien;
	}
	public void setanhDaiDien(String anhDaiDien) {
		this.anhDaiDien = anhDaiDien;
	}
	public Date getNgayThang() {
		return ngayThang;
	}
	public void setNgayThang(Date ngayThang) {
		this.ngayThang = ngayThang;
	}
	public int getGiaSauKhiGiam() {
		return giaSauKhiGiam;
	}
	public void setGiaSauKhiGiam(int giaSauKhiGiam) {
		this.giaSauKhiGiam = giaSauKhiGiam;
	}
	public String getThongTinNoiBat() {
		return thongTinNoiBat;
	}
	public void setThongTinNoiBat(String thongTinNoiBat) {
		this.thongTinNoiBat = thongTinNoiBat;
	}
	public String getThoiGianBaoHanh() {
		return thoiGianBaoHanh;
	}
	public void setThoiGianBaoHanh(String thoiGianBaoHanh) {
		this.thoiGianBaoHanh = thoiGianBaoHanh;
	}
	public String getTrongLuong() {
		return trongLuong;
	}
	public void setTrongLuong(String trongLuong) {
		this.trongLuong = trongLuong;
	}
	public String getKichThuoc() {
		return kichThuoc;
	}
	public void setKichThuoc(String kichThuoc) {
		this.kichThuoc = kichThuoc;
	}
	public String getMauSac() {
		return mauSac;
	}
	public void setMauSac(String mauSac) {
		this.mauSac = mauSac;
	}
	public abstract SanPham getSanPham(int idSP);
	public abstract SanPham[] getMobileByCategory(int cat, boolean limit);
	public abstract ArrayList<SanPham> getMobileByManufacturer(int producerID);
	public abstract void deleteMobile(int mobileID) ;
	public  abstract  void addMobile11(Mobile sp,int cat) ;
	public abstract void updateMobile(Mobile m,int cat);
	

}